<?php
namespace Model;

use Zend\Db\Adapter\Adapter;
use Zend\Db\Sql\Select;
use Zend\InputFilter\InputFilter;

class PrivilegeTypeTable extends AbstractTable
{
    /**
     * @param $id
     * @return PrivilegeType
     */
    public function getPrivilegeType($id){
       return $this->getById($id);
    }


    /**
     * @param $code
     * @return PrivilegeType
     */
    public function getPrivilegeTypeByCode($code){
        return $this->getByColumn('code', $code)->current();
    }




}